package com.hqq.action.inherit.strategy;

/**
 * Multi
 * Created by heqianqian on 2017/3/11.
 */
public class Multi extends AbstractCalculator implements ICalculator {
    @Override
    public int calculate(String exp) {
        int arrayInt[] = split(exp,"\\*");
        return arrayInt[0]*arrayInt[1];
    }
}
